package com.groupbuying.settleproducer.connector;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Author cuich
 * @Description 调用支付中心接口
 * @Date 2019/6/12 15:30
 **/
@Service
@FeignClient("bus-pay")
public interface PayFeign {
    /*通过订单号查询支付信息*/
    @RequestMapping(value = "/getPayInfoByOrderId", method = RequestMethod.GET)
    Map getPayInfoByOrderId(@RequestParam("orderId") String orderId);
}
